MDEV-39290 mytop use invoking login as default user on Unix
On non-Windows systems, use the invoking user's login name as the
default MariaDB username instead of hardcoding root.
Resolve the username from getpwuid($<), falling back to LOGNAME, USER,
and finally root. Keep the existing root default on Windows.
This makes mytop behave more like the mysql and mariadb clients and
avoids confusing authentication failures on systems where local socket
access is configured for the OS user rather than root.
Also update the connection error text and POD to describe the actual
default behavior.
(cherry picked from commit
14502365efa17b78281e53dd1ab883f5e298a432)
Merged in upstream branch 13.0. Debian patch can be dropped when importing
new upstream major version 13.0+.
Forwarded: https://github.com/MariaDB/server/pull/4918
Gbp-Pq: Name MDEV-39290-mytop-use-invoking-login-as-default-user-on-Un.patch